import axios from '@/libs/request'

/**
 * 统计人员状态总数
 */
export const totalAllUserType = (data) => {
  return axios.request({
    url: '/wl/totalAllUserType',
    data: data,
    type: 'get'
  })
}
// 统计景区的履历数据
export const jingQuCodeStatic = (data) => {
  return axios.request({
    url: '/wl/jingQuCodeStatic',
    data: data,
    type: 'get'
  })
}
// 扫码统计
export const qrCodeTongJiGo = (data) => {
  return axios.request({
    url: 'wl/qrCodeTongJiGo',
    data: data,
    type: 'get'
  })
}
// 外籍人员统计
export const waiJiShuLiang = (data) => {
  return axios.request({
    url: 'wl/waiJiShuLiang',
    data: data,
    type: 'get'
  })
}
// 优惠券统计
export const getSubsidyTotal = (data) => {
  return axios.request({
    url: 'wl/getSubsidyTotal',
    data: data,
    type: 'get'
  })
}
// 查询各统计项
export const getDayAllNum = (data) => {
  return axios.request({
    url: '/api/ac/ctcm/userPermitService/getDayAllNum',
    data: data,
    type: 'post'
  })
}
// 查询各统计项
export const getDayAllAreaNum = (data) => {
  return axios.request({
    // url: 'http://sst.wanglanglang.com/api/uc/ctc/ctcUserPermitService/getDayAllAreaNum',
    url: '/api/ac/ctcm/userPermitService/getDayAllAreaNum',
    data: data,
    type: 'post'
  })
}
export const getDayAllStreetNum = (data) => {
  return axios.request({
    url: '/api/ac/ctcm/userPermitService/getDayAllStreetNum',
    data: data,
    type: 'post'
  })
}
// 代办总数
export const getDayAllNumDaiBan = (data) => {
  return axios.request({
    url: '/api/ac/ctc/ctcUserPermitService/getDayAllNumDaiBan',
    data: data,
    type: 'post'
  })
}
// 代办总数8次
export const getDayAllNumDaiBanOne = (data) => {
  return axios.request({
    url: '/api/uc/ctcm/userPermitService/getDayAllNumDaiBanOne',
    data: data,
    type: 'post'
  })
}
// 代办总数区县
export const getDayAllAreaDaiBanNum = (data) => {
  return axios.request({
    url: '/api/uc/ctcm/userPermitService/getDayAllAreaDaiBanNum',
    data: data,
    type: 'post'
  })
}
// 代办总数街道
export const getDayAllStreetNumDaiBan = (data) => {
  return axios.request({
    url: '/api/uc/ctcm/userPermitService/getDayAllStreetNumDaiBan',
    data: data,
    type: 'post'
  })
}

/**
 * 新版统计
 */

// 市办理统计
export const getCityBL = (data) => {
  return axios.request({
    url: '/api/as/ctcm/passstats/getCityBL',
    data: data,
    type: 'post'
  })
}
// 区办理统计
export const getAreaBL = (data) => {
  return axios.request({
    url: '/api/as/ctcm/passstats/getAreaBLList',
    data: data,
    type: 'post'
  })
}
// 街道办理统计
export const getStreetBL = (data) => {
  return axios.request({
    url: '/api/as/ctcm/passstats/getStreetBLList',
    data: data,
    type: 'post'
  })
}
// 按时间查询场所二维码数量
export const allPlaceNum = (data) => {
  return axios.request({
    url: '/wl/allPlaceNum',
    data: data,
    type: 'get',
    php: true

  })
}
